import request from '@/utils/request'

export function unionInfo(unionId) {
  return request({
    url: '/union/info/' + unionId,
    method: 'get'
  })
}

export function unionList(params) {
  return request({
    url: '/union/list',
    method: 'get',
    params
  })
}

// export function getUnionInfo(uid) {
//   return request({
//     url: '/union/unionInfo/' + uid,
//     method: 'get'
//   })
// }
export function getUnionInfo(uid) {
  return request({
    url: '/union/info/' + uid,
    method: 'get'
  })
}

export function getMembers(params) {
  return request({
    url: '/union/members',
    method: 'get',
    params
  })
}
